#pragma once
#ifndef CONTROLER
#define CONTROLER

#include "stdafx.h"


class Controler
{
public:
	Controler(void);
	~Controler(void);
	int openConnection();
	int closeConnection();
	int sendMessage(char*, PDWORD length=0);
	char* receiveMessage();

private:
	HANDLE pipe;
	char buffer[BUFSIZE];
	bool connected;
};

#endif